package com.thiswhyme.fsplus.sentinel.feign.defaultdegrade;

/**
 * @description: 服务兜底降级配置属性
 * @author: thiswhyme
 * @date: 2021/4/25
 */
public class DegradeServiceProperties {

    /**
     * 待配置降级的出口服务名
     */
    private String serviceName;

    /**
     * 待配置降级的出口服务对应在注册中心的namespace
     */
    private String namespace;

    /**
     * 待配置降级的出口服务对应在注册中心的group
     */
    private String group = "DEFAULT_GROUP";

    /**
     * 出口服务的兜底降级规则
     */
    private SimpleDegradeRule rule = new SimpleDegradeRule();

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public SimpleDegradeRule getRule() {
        return rule;
    }

    public void setRule(SimpleDegradeRule rule) {
        this.rule = rule;
    }
}
